package com.doit.mxdx;

public class Fu {
    String name = "父亲大人";
    int age = 18;

    public void print(){
        System.out.println("父亲大人的方法");
    }

}


class Zi extends Fu{
    String name = "小兔崽子";

    public void showName(){
        System.out.println(name);
    }

    @Override
    public void print(){
        System.out.println("小兔崽子的方法");
    }
}
